package cn.yuanqiao.archive.wenjianzhengli.service;

import cn.yuanqiao.archive.appManager.domain.TenantYqdaDocument;
import com.alibaba.fastjson2.JSONObject;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author zjj
 * @date 2023/6/28
 */
public interface ITenantYqdaDocumentService {
    JSONObject uploadFile(Long categoryId, Long daId, Integer type,String fields, MultipartFile file) throws Exception;

    int updateDocument(JSONObject object);

    Map<String,Object> getDocumentById(JSONObject object);

    int delDocument(Long categoryId,Long[] ids,Long daId);

    List<Map<String, Object>> getDocumentBydaId(JSONObject object);

    void docToOfdTask(String tenantCode);

    void docToOfd(Long docId, Long categoryId) throws Exception;

    void docToOfdHdyy(Long docId, Long categoryId) throws Exception;

    List<TenantYqdaDocument> selectNotYqdatransdoc(String filename, String houzhui);

    void identify(Long docId, Long categoryId);

    void identifyHdyy(Long docId, Long categoryId);

    String identifyPdf(Long docId, Long categoryId);

    void identifyTask(String tenantCode,String categoryId);

    void identifyPdfTask(String tenantCode,String categoryId);

    void identifyTaskAll(String tenantCode,String categoryId);
}
